<html>
  <head>
    <title>Listing 4.4: Passing Multiple Values to a Function</title>

    <script language="JavaScript" type="text/javascript">
      <!--
      function change_colors(new_back_color,new_fore_color)
      {
	document.bgColor=new_back_color
	document.fgColor=new_fore_color
      }
      //-->
    </script>
  </head>
  <body>
    <h1>Passing Multiple Values to a Function</h1>
    <form>
      <input type="button" value="Red Background,White Text" onClick="change_colors('red','white')">
      <input type="button" value="White Background,Red Text" onClick="change_colors('white','red')">
    </form>
  </body>
</html>

  
